package com.tougc.bean.beans;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Administrator on 2016/7/13.
 */
public class FinancesSelector implements Parcelable {
    //选中
    public boolean isSelect;

    public boolean isSelect() {
        return isSelect;
    }

    public void setSelect(boolean select) {
        isSelect = select;
    }


    //批次id
    private String id;
    //批次名称
    private String batch;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getBatch() {
        return batch;
    }

    public void setBatch(String batch) {
        this.batch = batch;
    }

    public FinancesSelector(boolean isSelect, String id, String batch) {
        this.isSelect = isSelect;
        this.id = id;
        this.batch = batch;

    }

    //车辆状态编号
    private String dictionaries_no;
    //车辆状态名称
    private String dictionaries_name;

    public String getDictionaries_no() {
        return dictionaries_no;
    }

    public void setDictionaries_no(String dictionaries_no) {
        this.dictionaries_no = dictionaries_no;
    }

    public String getDictionaries_name() {
        return dictionaries_name;
    }

    public void setDictionaries_name(String dictionaries_name) {
        this.dictionaries_name = dictionaries_name;
    }

    public FinancesSelector() {
    }

    public FinancesSelector(String dictionaries_no, boolean isSelect,  String dictionaries_name) {
        this.isSelect = isSelect;
        this.dictionaries_no = dictionaries_no;
        this.dictionaries_name = dictionaries_name;
    }


    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(id);
        dest.writeString(batch);
        dest.writeString(dictionaries_no);
        dest.writeString(dictionaries_name);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public final Parcelable.Creator<FinancesSelector> CREATOR = new Creator<FinancesSelector>() {

        @Override
        public FinancesSelector createFromParcel(Parcel source) {
            FinancesSelector selector = new FinancesSelector();
            selector.id = source.readString();
            selector.batch = source.readString();
            selector.dictionaries_no = source.readString();
            selector.dictionaries_name = source.readString();

            return selector;
        }

        @Override
        public FinancesSelector[] newArray(int size) {
            return new FinancesSelector[0];
        }
    };

}

